package sl.sl30;

import org.apache.log4j.Logger;
import org.aspectj.lang.JoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;

@Aspect
public class AfterLogger {

    private static Logger logger = Logger.getLogger(AfterLogger.class);

    @After("execution(* sl.sl2.service.UserService.*(..))")
    public void afterLogger(JoinPoint jp){
        logger.info(jp.getSignature().getName()+" 方法结束执行。");
    }

}
